<include file="public:head" />

  <!-- 二级页次级导航 -->
<include file="public:sep" />
<!-- 二级页次级导航结束 -->

<!-- 主体开始 -->
<div class="layui-container" > 
    <!-- 检索 -->
 
    <div class="fly-panel fly-column jiansuo">
        <ul class="layui-clear">
          <li class="layui-hide-xs catelist">地区：</li> 
          <li><a href="{:U('txl/index',array('id'=> $vo['id']))}" <if condition="$id eq ''">class="on" </if>>全部</a></li> 
          <volist name="catelist" id="vo">
          <!-- <li ><a href="" class="on">全部</a></li>  -->
          <li><a href="{:U('txl/index',array('id'=> $vo['id']))}" <if condition="$id eq $vo['id']">class="on" </if>>{$vo.name}</a></li> 
          </volist>
        </ul> 
    </div>
  
    <!-- 检索end -->
   <!-- 列表开始 -->
    <div class="layui-row layui-col-space10">
      <empty name="list">
          <div class="fly-none">没有相关数据</div>
        </empty>
      <volist name="list" id="vo">
        
      <div class="layui-col-md3">
        <div class="item" itemId="{$vo.id}" title="{$vo.title}">
          <div class="item-inner">
            <div class="item-hd"> 
              <a class="item-icon" ><img src="{:C('wkcms_site_url')}Public/images/<if condition='$vo.renzheng eq 1'>anonymous.png<else />anonymous-no.png</if>"></a>
              <h3><a class="item-hd" >{$vo.title}</a></h3>
            </div>
            <div class="item-bd">
              <div class="item-desc" ><span class="layui-badge jifen">TEL：{$vo.tel|msubstr=###,0,18}</span>  </div>
            </div>
            <div class="item-ft"> 
              <span class="item-link">联系人：{$vo.lianxiren|msubstr=###,0,18}  </span> 
              <span class="item-link">邮箱：{$vo.email|msubstr=###,0,20}</span> 
              <span class="item-link">地址：{$vo.contact|msubstr=###,0,18}</span> 
              <!-- <span class="item-link"><a class="item-btn" href="{$vo.url}">{$vo.url}</a></span> -->
            </div>
          </div>
        </div>
      </div>
      </volist>

    </div>
   <!-- 列表结束 -->
   <div class="fly-main " style="overflow: hidden; min-height: 78px;"> 
      <div style="text-align: center">
          <div class="laypage-main">
            {$page}
          </div>
      </div>
  </div> 
  </div> 
  
<!-- 主体结束 -->
<include file="public:footer" />
<script src="__PUBLIC__/theme/blueideal/mods/jquery.min.js"></script> 
<script type="text/javascript">
  
layui.use(['table','form'], function() {
  var table = layui.table,form = layui.form,$ = layui.jquery;
  
  $(function(){
    $(".layui-row .item").click(function() {
      var id   = $(this).attr('itemId');  
      var title   = $(this).attr('title');  
      var send = {};
      send.id = id;
      var url = "{:U('txl/info')}";
      $.post(url,send,function(res) {
          layer.open({
            type: 1
            ,title: title
            ,area: '450px'
            ,shade: 0.1
            ,shadeClose: true
            ,content: [res.data].join('')
          });
          $("#jiucuo").click(function()
          {
              jiucuo($(this));
          })
      });
    });
  });

  function jiucuo(e)
  {
    var id = e.attr('dataId');

      layer.prompt({title: '请写下出错误原因：', formType: 2}, function(content, index){
        
        $.post("{:U('txl/jiucuo')}",{txl_id:id,content:content},function(res){
            if(res.status ==  1){
                layer.msg(res.msg,{time:1800},function(){
                 layer.closeAll();
                });
            }else{
                layer.msg(res.msg,{time:1800});
                layer.closeAll();
                return false;
            }
        });
         

      });
    
      
  }
  
});

</script>
<script>
layui.config({
  version: "3.0.0"
  ,base: '__PUBLIC__/theme/blueideal/mods/' //这里实际使用时，建议改成绝对路径
}).extend({
  fly: 'index'
}).use('fly');
</script>
   